#ifndef EQUATION_H
#define EQUATION_H

#include <math.h>

#define EPSILON 1.0e-10
#define COEFF_LIMIT 1.0e-16

#define TWO_PI    6.283185207179586476925286766560
#define TWO_PI_3  2.0943951023931954923084
#define TWO_PI_43 4.1887902047863909846168

#define FRAC_1_2   .5
#define FRAC_3_8   .375
#define FRAC_1_4   .25
#define FRAC_1_8   .125
#define FRAC_1_16  .0625

#define FRAC_1_3   .333333333333333333333333333333
#define FRAC_1_9   .111111111111111111111111111111
#define FRAC_1_27  .037037037037037037037037037037
class Equation {

public:
    static int SolveQuadratic (double a, double b, double c, double racines[]);
    static int SolveCubic (double a, double b, double c, double d, double racines[]);
    static int SolveQuartic (double a, double b, double c, double d, double e, double racines[]);

};

#endif